package com.adinnet.admin.classs.mapper;


import com.adinnet.admin.classs.model.Classs;
import com.adinnet.admin.classs.model.vo.ClassResp;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 班级名称 Mapper 接口
 * </p>
 *
 * @author zYshuai
 * @since 2020-12-02
 */
public interface ClasssMapper extends BaseMapper<Classs> {

    String getSchoolAdminName(@Param("id") Integer id);

    List<ClassResp> schoolList(Page<ClassResp> page, @Param("className") String className, @Param("schoolId")Integer schoolId, @Param("toOrganizationId")Integer toOrganizationId,@Param("sysUserId")Integer sysUserId);

    List<Classs> selectClasssByOrgId(Integer organizationId);

    Classs selectClasssForExcel(@Param("schoolName")String schoolName, @Param("className")String className,@Param("organizationId")Integer organizationId,@Param("schoolId")Integer schoolId,@Param("sysUserId")Integer sysUserId);
}
